//
//  TXCNetConst.swift
//  Demo
//
//  Created by ryan on 2021/8/21.
//

import Foundation

struct TXCNetConfiger {
    
    var environment: TXCSeverEnvironment

    init(environment: TXCSeverEnvironment) {
        self.environment = environment
    }
    
}

enum TXCSeverEnvironment {
    case develop
    case distribute
    
    var domainStr: String {
        switch self {
        case .develop:
            return "https://txcapp-test.y1b.cn/"
        case .distribute:
            return "https://txcapp-test.y1b.cn/"
        }
    }
}

struct TXCNetError: Error {
    var code: Int?
    var msg: String
    init(code: Int?, msg: String) {
        self.code = code
        self.msg = msg
    }
}

struct HttpNetConstant {
    
    static let news = "api2/post/getArticleList"
    
}
